"""GuLiEdu URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, re_path
from .views import user_res, UserLoginView, user_logout, user_active, user_forget, user_reset, user_info, user_changeimage, \
    user_changeinfo, user_changeemail, user_changeemail, user_resetemail, user_course, user_loveorg, user_lovecourse, \
    user_loveteacher, user_message,user_deletemessage

urlpatterns = [
    path("user_res/", user_res, name="user_res"),
    path("user_login/", UserLoginView.as_view(), name="user_login"),
    path("user_logout/", user_logout, name="user_logout"),
    re_path(r"^user_active/(\w+)/", user_active, name="user_active"),
    path("user_forget", user_forget, name="user_forget"),
    re_path(r"user_reset/(\w+)/", user_reset, name="user_reset"),
    re_path(r"user_info/", user_info, name="user_info"),
    re_path(r"user_changeimage/", user_changeimage, name="user_changeimage"),
    re_path(r"user_changeinfo/", user_changeinfo, name="user_changeinfo"),
    re_path(r"user_changeemail/", user_changeemail, name="user_changeemail"),
    re_path(r"user_resetemail/", user_resetemail, name="user_resetemail"),
    re_path(r"user_course/", user_course, name="user_course"),
    re_path(r"user_loveorg/", user_loveorg, name="user_loveorg"),
    re_path(r"user_lovecourse/", user_lovecourse, name="user_lovecourse"),
    re_path(r"user_loveteacher/", user_loveteacher, name="user_loveteacher"),
    re_path(r"user_message/", user_message, name="user_message"),
    re_path(r"user_deletemessage/", user_deletemessage, name="user_deletemessage"),

]
